#!/bin/sh

DEVTTY=`sed -e 's/[ ,\t]/\n/g' /proc/cmdline | sed -n 's/console=//p'`

[ -z $DEVTTY ] && exit 0
[ "x$MDEV" = "x$DEVTTY" ] && ln -sf $MDEV /dev/ttyXXX

exit 0

